import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.css'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)

// 初始化应用状态
import { useAppStore, useUserStore } from '@/stores'
const appStore = useAppStore()
const userStore = useUserStore()

appStore.initApp()
userStore.initUserState()

app.mount('#app')
